﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Akso.Entities;
using Akso.Schools.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.Schools
{
    public interface ISchoolAppService: IApplicationService
    {
        Task<ListResultDto<SchoolListDto>> GetSchools();
        /// <summary>
        /// 新增、编辑数据
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<School> CreateOrUpdateObject(CreateOrUpdateSchoolInput input);
        /// <summary>
        /// 在新增、编辑数据的弹出对话框中，获取对象的数据。
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetSchoolForEditOutput> GetObjectForEdit(NullableIdDto<Guid> input);
        /// <summary>
        /// 删除学校
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeleteSchool(EntityDto<Guid> input);

        ListResultDto<SchoolListDto> GetAllSchools();
    }
}
